package springinpractice.common.dao;

import java.util.List;

/*
 * Author       :       Willie Wheeler and John Wheeler
 * Book         :       'Spring In Practice' [Book written by Willie Wheeler and John Wheeler]
 */

public interface AbstractDao<T extends Object> {
	
	void save(T t);
	
	T get(Long id);
	
	T load(Long id);
	
	List<T> getList();
	
	void update(T t);
	
	void delete(T t);
	
	void deleteById(Long id);
	
	void deleteAll();
	
	long count();
}
